<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="gly" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link
	href="${pageContext.request.contextPath}/static/css/bootstrap.min.css"
	type="text/css" rel="stylesheet" />

</head>
<body>
	<form class="form-horizontal" role="form"
		style="width: 550px; margin: 10px auto;"
		action="${pageContext.request.contextPath}/users/saveUser"
		method="post" enctype="multipart/form-data">
		<div class="form-group">
			<label for="telephone" class="col-sm-3 control-label">手机:</label>
			<div class="col-sm-9">
				<input type="tel" class="form-control" id="telephone"
					placeholder="请输入电话号码" name="telephone">
			</div>
		</div>
		<div class="form-group">
			<label for="realname" class="col-sm-3 control-label">名称:</label>
			<div class="col-sm-9">
				<input type="text" class="form-control" id="realname"
					placeholder="请输入名称" name="realname">
			</div>
		</div>
		<div class="form-group">
			<label for="birthday" class="col-sm-3 control-label">生日:</label>
			<div class="col-sm-9">
				<input type="text" class="form-control" id="birthday"
					placeholder="请输入生日" name="birthday">
			</div>
		</div>

		<div class="form-group">
			<label for="id" class="col-sm-3 control-label">所属部门:</label>
			<div class="col-sm-9">
				<select class="form-control" name="dept.id">
					<option>请选择</option>
					<gly:forEach items="${depts}" var="dept">
						<option value="${dept.id}">${dept.dname}</option>
					</gly:forEach>

				</select>
			</div>
		</div>

		<div class="form-group">
			<label for="id" class="col-sm-3 control-label">用户头像:</label>
			<div class="col-sm-9">
				<input type="file" name="myHeadimg" />
			</div>
		</div>


		<div class="form-group">
			<label for="inputEmail3" class="col-sm-3 control-label"></label>
			<div class="col-sm-9">
				<input type="submit" class="btn btn-info col-sm-12" value="保存" />
			</div>
		</div>
	</form>
	<script src="${pageContext.request.contextPath}/staic/js/jquery-1.12.3.min.js" type="text/javascript"></script>
	<script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>